package com.smart_campus.teg.service;

import com.smart_campus.sys.common.DataGridView;
import com.smart_campus.sys.domain.User;
import com.smart_campus.teg.domain.Course;
import com.smart_campus.teg.vo.CourseVo;
import com.smart_campus.teg.vo.MajorVo;

import java.util.List;
import java.util.Map;

/**
*   @aytgor 陈鹏
*   @date 2020/6/19 15:09
*
*/
public interface CourseService{


    int deleteByPrimaryKey(Integer courseId);

    Course insert(Course record);

    Course insertSelective(Course record);

    Course selectByPrimaryKey(Integer courseId);

    Course updateByPrimaryKeySelective(Course record);

    Course updateByPrimaryKey(Course record);

    DataGridView CourseList(CourseVo courseVo);

    /**
     * 添加课程
     * @param courseVo
     */
    CourseVo CourseAdd(CourseVo courseVo);


    /**
     * 修改课程
     * @param courseVo
     */
    Course CourseUpdate(CourseVo courseVo);

    /**
     * 删除课程
     * @param courseId
     */
    void CourseDelete(Integer courseId);

    /**
     * 查询老师
     * @return
     */
//    List<Map> SelectTeacher();

}
